<!-- app/View/Users/add.ctp -->
<div class="users form">
<?php echo $this->Form->create('User'); ?>
    <fieldset>
        <legend><?php echo __('Editar Usuario'); ?></legend>
        <?php 
		echo $this->Form->hidden('id', array('value' => $this->data['User']['id']));
		echo $this->Form->input('username', array( 'readonly' => 'readonly', 'label' => 'Usuario no puede ser cambiado!'));
		echo $this->Form->input('email');
        echo $this->Form->input('password_update', array( 'label' => 'Nueva Contraseña (Dejar en blanco si no desea cambiar)', 'maxLength' => 255, 'type'=>'password','required' => 0));
		echo $this->Form->input('password_confirm_update', array('label' => 'Confirmar nueva contraseña ', 'maxLength' => 255, 'title' => 'Confirm New password', 'type'=>'password','required' => 0));
		
echo $this->Form->input('estado',array("type"=>"select","options"=>array(1 => "Activo",2 => "Inactivo")));
		
		echo $this->Form->input('role_id');
		echo $this->Form->submit('Edit User', array('class' => 'form-submit',  'title' => 'Click here to add the user') ); 
?>
    </fieldset>
<?php echo $this->Form->end(); ?>

<table>

<td align="right"><span class="lbutton"><?php echo $this->Html->link( "Regresar",   array('action'=>'index') ); ?></span></td>
	</table>
</div>
